Optimal. Leaf size=43 \[ -\frac {a+b \tanh ^{-1}\left (\frac {c}{x}\right )}{2 x^2}+\frac {b \tanh ^{-1}\left (\frac {x}{c}\right )}{2 c^2}-\frac {b}{2 c x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {6097, 263, 325, 207} \[ -\frac {a+b \tanh ^{-1}\left (\frac {c}{x}\right )}{2 x^2}+\frac {b \tanh ^{-1}\left (\frac {x}{c}\right )}{2 c^2}-\frac {b}{2 c x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 207
Rule 263
Rule 325
Rule 6097
Rubi steps
\begin {align*} \int \frac {a+b \tanh ^{-1}\left (\frac {c}{x}\right )}{x^3} \, dx &=-\frac {a+b \tanh ^{-1}\left (\frac {c}{x}\right )}{2 x^2}-\frac {1}{2} (b c) \int \frac {1}{\left (1-\frac {c^2}{x^2}\right ) x^4} \, dx\\ &=-\frac {a+b \tanh ^{-1}\left (\frac {c}{x}\right )}{2 x^2}-\frac {1}{2} (b c) \int \frac {1}{x^2 \left (-c^2+x^2\right )} \, dx\\ &=-\frac {b}{2 c x}-\frac {a+b \tanh ^{-1}\left (\frac {c}{x}\right )}{2 x^2}-\frac {b \int \frac {1}{-c^2+x^2} \, dx}{2 c}\\ &=-\frac {b}{2 c x}-\frac {a+b \tanh ^{-1}\left (\frac {c}{x}\right )}{2 x^2}+\frac {b \tanh ^{-1}\left (\frac {x}{c}\right )}{2 c^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 60, normalized size = 1.40 \[ -\frac {a}{2 x^2}-\frac {b \log (x-c)}{4 c^2}+\frac {b \log (c+x)}{4 c^2}-\frac {b \tanh ^{-1}\left (\frac {c}{x}\right )}{2 x^2}-\frac {b}{2 c x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.51, size = 46, normalized size = 1.07 \[ -\frac {2 \, a c^{2} + 2 \, b c x + {\left (b c^{2} - b x^{2}\right )} \log \left (-\frac {c + x}{c - x}\right )}{4 \, c^{2} x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.17, size = 123, normalized size = 2.86 \[ -\frac {\frac {b {\left (c + x\right )} \log \left (-\frac {c + x}{c - x}\right )}{{\left (\frac {{\left (c + x\right )}^{2} c}{{\left (c - x\right )}^{2}} - \frac {2 \, {\left (c + x\right )} c}{c - x} + c\right )} {\left (c - x\right )}} - \frac {b - \frac {2 \, a {\left (c + x\right )}}{c - x} - \frac {b {\left (c + x\right )}}{c - x}}{\frac {{\left (c + x\right )}^{2} c}{{\left (c - x\right )}^{2}} - \frac {2 \, {\left (c + x\right )} c}{c - x} + c}}{c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 57, normalized size = 1.33 \[ -\frac {a}{2 x^{2}}-\frac {b \arctanh \left (\frac {c}{x}\right )}{2 x^{2}}-\frac {b}{2 c x}-\frac {b \ln \left (\frac {c}{x}-1\right )}{4 c^{2}}+\frac {b \ln \left (1+\frac {c}{x}\right )}{4 c^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.32, size = 52, normalized size = 1.21 \[ \frac {1}{4} \, {\left (c {\left (\frac {\log \left (c + x\right )}{c^{3}} - \frac {\log \left (-c + x\right )}{c^{3}} - \frac {2}{c^{2} x}\right )} - \frac {2 \, \operatorname {artanh}\left (\frac {c}{x}\right )}{x^{2}}\right )} b - \frac {a}{2 \, x^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.71, size = 49, normalized size = 1.14 \[ \frac {b\,c\,\mathrm {atan}\left (\frac {x}{\sqrt {-c^2}}\right )}{2\,{\left (-c^2\right )}^{3/2}}-\frac {b}{2\,c\,x}-\frac {b\,\mathrm {atanh}\left (\frac {c}{x}\right )}{2\,x^2}-\frac {a}{2\,x^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.95, size = 44, normalized size = 1.02 \[ \begin {cases} - \frac {a}{2 x^{2}} - \frac {b \operatorname {atanh}{\left (\frac {c}{x} \right )}}{2 x^{2}} - \frac {b}{2 c x} + \frac {b \operatorname {atanh}{\left (\frac {c}{x} \right )}}{2 c^{2}} & \text {for}\: c \neq 0 \\- \frac {a}{2 x^{2}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________